import * as React from 'react';
import {observer} from 'mobx-react'
import styles from './index.scss';

import Swiper from './Swiper'
import {IPredictType} from "../../../type/firstType";

interface IProps {
    predictWarning: IPredictType[]
}

@observer
class Home extends React.Component<IProps> {

    constructor(props) {
        super(props);
    }


    public render() {
        const {predictWarning} = this.props
        console.log(predictWarning,'传递的日志数据')
        return (
            <div className={styles.topTwo}>
                <p className={styles.titleY}>预警Top5</p>
                <Swiper predictWarning={predictWarning} borderBottom='0.5px solid rgb(13,93,139)' borderTop='0.5px solid rgb(13,93,139)' />
            </div>
        );
    }
}

export default Home;
